package com.whminwei.edu.api.student.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.BaseHttpResponse;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.student.dto.feq.ClasseFeq;
import com.whminwei.edu.api.student.dto.fspn.ClasseFspn;
import com.whminwei.edu.api.student.dto.fspn.ClasseListFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangy
 * @since 2024/5/17
 */
@FeignClient(name = "xzzg-pt-student-service", contextId = "classe-info", configuration = FullHttpRspnConfig.class)
public interface ClasseClient {

    /**
     * 推送班级信息
     *
     * @author wangy
     * @since 11:11 2024/4/12
     **/
    @PostMapping("/classe/pushClasse")
    BaseHttpResponse pushClasse(@RequestBody @Validated ClasseFeq req);

    /**
     * 查询所有班级列表
     *
     * @return FullHttpResponse<ClasseListFspn>
     * @author zhangzf
     * @since 2024/7/9
     */
    @PostMapping("/classe/getClasseList")
    FullHttpResponse<ClasseListFspn> getClasseList();

}
